<?php
class OrdersModel extends RelationModel {
    protected $_link = array(
            'Wbar'=>array(
            'mapping_type'    =>HAS_ONE,
                'class_name'    =>'Wbar',
                'foreign_key'=>'id',
    			'as_fields'=>'name,phone',
//    			'mapping_name' =>'wbar_name',
//    			'mapping_fields'=>'name',
             ),
         );
	
}